package com.BeeFramework.view;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.sgr.dykdriver.R;
import com.example.moshudriver.protocol.USER_DRIVER;

public class CopartnerDialog {

	public Dialog mDialog;
	public TextView tv_driver_name;
	public TextView tv_driver_income;
	public TextView tv_driver_order;
	public TextView positive;

	public CopartnerDialog(Context context, String name,String income,String order_num) {

		LayoutInflater inflater = LayoutInflater.from(context);
		View view = inflater.inflate(R.layout.dialog_copartner_layout, null);

		mDialog = new Dialog(context, R.style.dialog);
		mDialog.setContentView(view);
		mDialog.setCanceledOnTouchOutside(true);
		
		tv_driver_name = (TextView) view.findViewById(R.id.tv_driver_name);
		tv_driver_name.setText(name);
		tv_driver_income = (TextView) view.findViewById(R.id.tv_driver_income);
		tv_driver_income.setText(income+"元");
		tv_driver_order = (TextView) view.findViewById(R.id.tv_driver_order);
		tv_driver_order.setText(order_num+"笔");
		
		positive = (TextView) view.findViewById(R.id.yes);
		
	}
	
	public void show() {
		mDialog.show();
	}
	
	public void dismiss() {
		mDialog.dismiss();
	}
	public void setCancelable(Boolean bool) {
		mDialog.setCancelable(bool);
	}

}
